package com.hl.order.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hl.order.mapper.RefundGoodsMapper;
import com.hl.order.domain.RefundGoods;
import com.hl.order.service.IRefundGoodsService;

/**
 * 退款商品管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-09
 */
@Service
public class RefundGoodsServiceImpl implements IRefundGoodsService 
{
    @Autowired
    private RefundGoodsMapper refundGoodsMapper;

    /**
     * 查询退款商品管理
     * 
     * @param refundGoodsId 退款商品管理主键
     * @return 退款商品管理
     */
    @Override
    public RefundGoods selectRefundGoodsByRefundGoodsId(Long refundGoodsId)
    {
        return refundGoodsMapper.selectRefundGoodsByRefundGoodsId(refundGoodsId);
    }

    /**
     * 查询退款商品管理列表
     * 
     * @param refundGoods 退款商品管理
     * @return 退款商品管理
     */
    @Override
    public List<RefundGoods> selectRefundGoodsList(RefundGoods refundGoods)
    {
        return refundGoodsMapper.selectRefundGoodsList(refundGoods);
    }

    /**
     * 新增退款商品管理
     * 
     * @param refundGoods 退款商品管理
     * @return 结果
     */
    @Override
    public int insertRefundGoods(RefundGoods refundGoods)
    {
        return refundGoodsMapper.insertRefundGoods(refundGoods);
    }

    /**
     * 修改退款商品管理
     * 
     * @param refundGoods 退款商品管理
     * @return 结果
     */
    @Override
    public int updateRefundGoods(RefundGoods refundGoods)
    {
        return refundGoodsMapper.updateRefundGoods(refundGoods);
    }

    /**
     * 批量删除退款商品管理
     * 
     * @param refundGoodsIds 需要删除的退款商品管理主键
     * @return 结果
     */
    @Override
    public int deleteRefundGoodsByRefundGoodsIds(Long[] refundGoodsIds)
    {
        return refundGoodsMapper.deleteRefundGoodsByRefundGoodsIds(refundGoodsIds);
    }

    /**
     * 删除退款商品管理信息
     * 
     * @param refundGoodsId 退款商品管理主键
     * @return 结果
     */
    @Override
    public int deleteRefundGoodsByRefundGoodsId(Long refundGoodsId)
    {
        return refundGoodsMapper.deleteRefundGoodsByRefundGoodsId(refundGoodsId);
    }
}
